﻿using Core.Framework.Model.WebSockets;
using Core.Framework.Util;
using Core.IBusiness.IPushModule;
using Core.IBusiness.IPushModule.Model;
using Core.IBusiness.ISocketModule;
using System;
using System.Collections.Generic;

namespace Core.Business.PushModule
{
    /// <summary>
    /// 运营
    /// </summary>
    public class Operate : IOperatePush
    {
        Utils utils;

        public Operate(IQueue queue) 
        {
            utils = new Utils(queue);
        }

        public void CustomBroadcast(BroadcastCustomModel custom) => utils.PublishHelper(custom);

        public void InfoBroadcast(BroadcastInfoModel info) => utils.PublishHelper(info);

        public void ProductBroadcast(BroadcastProductModel product) => utils.PublishHelper(product);

    }
}
